package com.llws.petgoodsshop.bean;

/**
 * users表对应的实体类
 * 注意：表字段使用下划线分隔，java属性通过大小写分隔，举例：表字段：user_id  <---> Java属性：userId
 */
public class Users {
    // 格式化代码：ctrl+alt+l
    private int userId;// 编号，主键
    private String phone;// 手机号
    private String password;// 密码
    private String nickname;// 昵称
    private String gender;// 性别
    private String address;// 住址
    private int role;// 角色
    // 快速生成get/set方法，alt+insert

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "Users{" +
                "userId=" + userId +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", gender='" + gender + '\'' +
                ", address='" + address + '\'' +
                ", role=" + role +
                '}';
    }
}
